<?php
include_once '../model/util/Util.php';  
//include_once '../model/util/plog/classes/plog.php';

abstract  class  BaseService{
//	public $log;
	private $tragetObj;
	function __construct() {
//		Plog::set_config(include  $_SERVER['DOCUMENT_ROOT'].'/shopcarda1/sys/com/model/util/plog/config.php');
		
		header("Content-Type:text/html; charset=utf-8");
	}
    
	function setTarget($obj) {
		$this->tragetObj =$obj;
	}
	
	public function __call($name, $args) 
	{
		$r = new ReflectionClass($this-> tragetObj);
		if ($method = $r->getMethod($name)) 
		{
			return $method->invoke($this-> tragetObj, $args);
			 
		}
	}
}	
?>